package net.qhzw.vip.qiyu.dto;

import lombok.Data;
import lombok.NoArgsConstructor;
import net.qhzw.vip.qiyu.entity.MaintRpt;


@Data
@NoArgsConstructor
public class DispatchDto {


    /**
     * 报案ID
     */
    private Long id;

    /**
     * 报案人姓名
     */
    private String realName;

    /**
     * 联系电话
     */
    private String mobile;

    /**
     * 报案位置
     */
    private String address;

    /**
     * 故障描述
     */
    private String remarks;


    /**
     * 维修人
     */
    private String repairUser;

    public DispatchDto(MaintRpt maintRpt, String repairUser) {
        this.id = maintRpt.getId();
        this.realName = maintRpt.getRealName();
        this.mobile = maintRpt.getMobile();
        this.address = maintRpt.getAddress();
        this.remarks = maintRpt.getRemarks();
        this.repairUser = repairUser;
    }
}
